
/**
 * 增加
 */
function _add(id){
	//alert("===="+id);
	var url = path+"/buy?action=modifyCar&id="+id+"&num=1";
	window.location.href=url;
}
/**
 * 删除
 */
function _del(id){
	var url = path+"/buy?action=modifyCar&id="+id+"&num=-1";
	window.location.href=url;
	
}

/**
 *确认购物车是否为空
 */
function sure(){
	var tb = document.getElementById("table");
	if(tb.rows.length<=3){
		$.messager.alert('购物车','购物车为空请购买书籍后再试','info');
		return;
	}
	window.location.href=path+"/address?action=queryAddress";
}
/**
清空购物车包括session数据
*/
function clearCar(){
	
	window.location.href=path+"/buy?action=clearCar";
}